package com.ming.tank;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * @ClassName : T
 * @Description : 新的
 * @Author : H.M
 * @Date: 2021-06-09 19:05
 **/
public class T {
   public static void  main(String args[]) {
       Frame f = new Frame();
       f.setSize(800,600);
       f.setResizable(false);
       f.setTitle("TANK WAR");
       f.setVisible(true);
       f.addWindowListener(new WindowAdapter() {
           @Override
           public void windowClosing(WindowEvent e) {
             System.exit(0);
           }
       });

   }
}
